package routers

import (
	beego "github.com/beego/beego/v2/server/web"
	"im/controllers"
)

func init() {
	beego.Router("/", &controllers.MainController{})

	beego.Router("/video/list", &controllers.VideoController{}, "Get:GetVideoList")
	beego.Router("/video/sort", &controllers.VideoController{}, "Get:GetVideoSort")
	beego.Router("/video/find", &controllers.VideoController{}, "Get:GetVideoFind")
	beego.Router("/danmu/add", &controllers.DanmuController{}, "POST:DanmuAdd")
}
